package com.crm.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class BizContract extends BaseModel{
    private String contractId;

    private String contractCode;

    private String partnerId;

    private String discussUser;

    private String signUser;

    @DateTimeFormat(pattern="MM/dd/yyyy")
    private Date signDate;

    @DateTimeFormat(pattern="MM/dd/yyyy HH:mm:ss")
    private Date expireDate;
    
    private String uploadContract;

    public String getContractId() {
        return contractId;
    }

    public void setContractId(String contractId) {
        this.contractId = contractId;
    }

    public String getContractCode() {
        return contractCode;
    }

    public void setContractCode(String contractCode) {
        this.contractCode = contractCode;
    }

    public String getPartnerId() {
        return partnerId;
    }

    public void setPartnerId(String partnerId) {
        this.partnerId = partnerId;
    }

    public String getDiscussUser() {
		return discussUser;
	}

	public void setDiscussUser(String discussUser) {
		this.discussUser = discussUser;
	}

	public String getSignUser() {
		return signUser;
	}

	public void setSignUser(String signUser) {
		this.signUser = signUser;
	}

//	@JsonFormat(pattern="yyyy-MM-dd",timezone="Asia/Shanghai")
	@JsonFormat(pattern="MM/dd/yyyy",timezone="Asia/Shanghai")
	public Date getSignDate() {
        return signDate;
    }

    public void setSignDate(Date signDate) {
        this.signDate = signDate;
    }

//    @JsonFormat(pattern="yyyy-MM-dd",timezone="Asia/Shanghai")
    @JsonFormat(pattern="MM/dd/yyyy",timezone="Asia/Shanghai")
    public Date getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(Date expireDate) {
        this.expireDate = expireDate;
    }

	public String getUploadContract() {
		return uploadContract;
	}

	public void setUploadContract(String uploadContract) {
		this.uploadContract = uploadContract;
	}

}